package cn.oyjg;

public class Table {
	private String fieldName;
	private String columnName;
	private String type;
	private String comment;
	public Table(String fieldName,String columnName,String type,String comment){
		this.fieldName=fieldName;
		this.type=type;
		this.comment=comment;
		this.columnName=columnName;
	}
	public String getFieldName() {
		return fieldName;
	}
	public void setFieldName(String fieldName) {
		this.fieldName = fieldName;
	}
	public String getType() {
		if(this.type.toLowerCase().equals("VARCHAR")){
			return "String";
		}
		if(this.type.toLowerCase().equals("int")){
			return "Integer";
		}else{
			return "String";
		}
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getComment() {
		return comment;
	}
	public void setComment(String comment) {
		this.comment = comment;
	}
	public String getColumnName() {
		return columnName;
	}
	public void setColumnName(String columnName) {
		this.columnName = columnName;
	}
	
}
